// @ts-nocheck
import { defineConfig } from '@vben/vite-config';
import { quasar, transformAssetUrls } from "@quasar/vite-plugin"

export default defineConfig(async () => {
  return {
    application: {},
    vite: {
      server: {
        proxy: {
          '/api': {
            changeOrigin: true,
            rewrite: (path) => path.replace(/^\/api/, ''),
            // mock代理目标地址
            target: 'http://localhost:5320/api',
            ws: true,
          },
        },
      },
      plugins:[
        quasar({
            // 在vue组件中注入，而不会在单独的css文件中注入👇
            // sassVariables: "@/css/amtf-var.scss",
        })]
    },
  };
});
